package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 悬赏回复
 * </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@TableName("bounty_reply")
@Getter
@Setter
public class BountyReplyBean extends Model<BountyReplyBean> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 用户名
     */
	@TableField("user_name")
	private String userName;
    /**
     * 回复内容
     */
	@TableField("reply_content")
	private String replyContent;
    /**
     * 是否采纳 0：否 1：是
     */
	@TableField("is_adopt")
	private Integer isAdopt;
    /**
     * 是否删除 0：否 1：是
     */
	@TableField("is_del")
	private Integer isDel;
    /**
     * 创建人编号
     */
	@TableField("created_by")
	private Integer createdBy;
    /**
     * 创建时间
     */
	@TableField("created_time")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date createdTime;
    /**
     * 修改人编号
     */
	@TableField("modified_by")
	private Integer modifiedBy;
    /**
     * 最后修改时间
     */
	@TableField("modified_time")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date modifiedTime;
    /**
     * 悬赏ID
     */
	@TableField("bounty_id")
	private Integer bountyId;

	@TableField("user_avatar")
	private String userAvatar;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
